cordova.define("memego-plugin-wechat.WechatPlugin", function(require, exports, module) {
var exec = require('cordova/exec');

exports.login = function(appId,secret, success, error) {
    exec(success, error, "WechatPlugin", "login", [appId,secret]);
};

exports.pay = function(payData,success, error) {
    exec(success, error, "WechatPlugin", "pay", [payData]);
};

exports.hasWechat = function(appId,success, error) {
    exec(success, error, "WechatPlugin", "hasWechat", [appId]);
};
});
